/*
 * Superclass of 'Patient', 'Doctor', and 'Nurse'
 */
public class Member {
	private String firstName;
	private String lastName;
	private String password;
	private String userName;
	private int ID;
	private String address;
	
	
	//constructor
	public Member(String f, String l, String p, String u, String a, int id) {
		firstName = f;
		lastName = l;
		password = p;
		userName = u;
		ID = id;
		address = a;
	}
	
	
	//Getter methods
	public String getFirstName() {
		return firstName;
	}
	
	
	public String getLastName() {
		return lastName;
	}
	
	public String getUserName() {
		return userName;
	}
	
	
	public int getID() {
		return ID;
	}
	
	
	public String getAddress() {
		return address;
	}
	
	
	//Setter methods
	public void setFirstName(String f) {
		firstName = f;
	}
	
	
	public void setLastName(String l) {
		lastName = l;
	}
	
	
	public void setID(int id) {
		ID = id;
	}
	
	
	public void setAddress(String a) {
		address = a;
	}
	
	
	public boolean checkPass(String p)
	{
		if(p.equals(this.password))
		{
			return true;
		}
		
		return false;
	}
        
        public String toString() {
		return (userName + ": " + lastName + ", " + firstName);
	}
	
}
